package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserAddressBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetUserAddressByIdIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetUserAddressByIdModel extends RetrofitBaseModel implements GetUserAddressByIdIface<UserAddressBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetUserAddressByIdModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getUserAddressById(String useraddressid, TListener<UserAddressBean> tListener) {
        Call<UserAddressBean> call = allService.getUserAddressById(useraddressid);
        callenqueue(call,tListener);
    }
}
